import http from '@/utils/http'
// 获取直播列表页数据
export function getLiveLibrary(params) {
  return http.get('/wxpub/api/live_library_pc', params)
}
// 预约直播课
export function subscribeLive(params) {
  return http.get('/wxpub/api/live_subscribe', params)
}
// 获取直播数据
export function getLiveData(params) {
  return http.get('/wxpub/api/live_detail', params)
}
// 提交直播回放弹幕
export function liveBarrage(params) {
  return http.post('/app/subscribe_activity/live_barrage', params)
}
// 预约直播课
export function liveSubscribe(params) {
  return http.get('/wxpub/api/live_subscribe', params)
}
// 取消预约直播
export function liveUnsubscribe(params) {
  return http.get('/wxpub/api/live_unsubscribe', params)
}
// 拉取直播回放视频进度
export function pullProgressLive(params) {
  return http.get('/storage/video/pull_progress_live', params)
}
// 游客模式上报直播课进度
export function visitorPushProgress(params) {
  return http.post('/storage/video/visitor_push_progress', params)
}
// 游客模式获取直播课进度
export function visitorPullProgress(params) {
  return http.get('/storage/video/visitor_pull_progress_live', params)
}

// 拉取回放进度
export function getProgressLive(params) {
  return http.get('/storage/video/pull_progress_live', params)
}

// 直播|回放进度上报
export function pushProgressLive(params) {
  return http.post('/storage/video/push_progressv2', params)
}


